package GUI;

import javax.swing.ImageIcon;
import javax.swing.JPanel;
import javax.swing.JLabel;
import java.awt.Color;
import java.awt.Font;
import javax.swing.JButton;
import javax.swing.SwingConstants;

public class Worker_Main_gui extends JPanel {

	private static final long serialVersionUID = 1L;
	private JButton btnViewEvent;
	private JButton btnUpdatePassword;
	private JButton btnViewSched;
	private JButton btnLogout;
	private JLabel iconlabel;
	private JButton btnUpdateDetails;
	
	
	public Worker_Main_gui() {
		setBackground(new Color(255, 69, 0));
		
		btnViewEvent = new JButton("View Event");
		btnViewEvent.setIcon(new ImageIcon(Worker_Main_gui.class.getResource("/resources/1402779782_rings.png")));
		btnUpdatePassword = new JButton("Update Password");
		btnUpdatePassword.setIcon(new ImageIcon(Worker_Main_gui.class.getResource("/resources/Apps-system-software-update-icon.png")));
		btnViewSched = new JButton("View Schedule");
		btnViewSched.setIcon(new ImageIcon(Worker_Main_gui.class.getResource("/resources/calendar_year.png")));
		btnLogout = new JButton("LOGOUT");
		btnLogout.setIcon(new ImageIcon(Worker_Main_gui.class.getResource("/resources/gnome_session_logout1.png")));
		btnUpdateDetails = new JButton("Update Details");
		btnUpdateDetails.setIcon(new ImageIcon(Worker_Main_gui.class.getResource("/resources/person_details.png")));
		setLayout(null);
		
		initialize();
		
	}
	

	public void initialize(){

		JLabel lblNewLabel = new JLabel(" Worker Main Window");
		lblNewLabel.setForeground(new Color(0, 204, 255));
		lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblNewLabel.setBounds(10, 11, 193, 44);
		lblNewLabel.setBackground(new Color(240, 240, 240));
		add(lblNewLabel);
		
		
		btnViewEvent.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnViewEvent.setBounds(143, 287, 175, 44);
		add(btnViewEvent);
		
		
		btnUpdatePassword.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnUpdatePassword.setBounds(143, 169, 175, 44);
		add(btnUpdatePassword);
		
		
		btnViewSched.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnViewSched.setBounds(440, 169, 175, 44);
		add(btnViewSched);
		
		btnLogout.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnLogout.setBounds(10, 462, 122, 27);
		add(btnLogout);
		
		btnUpdateDetails.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnUpdateDetails.setBounds(440, 287, 175, 44);
		add(btnUpdateDetails);
		
		ImageIcon LOGOImageIcon = new ImageIcon(getClass().getClassLoader().getResource("resources/camera-background3.png"));
		ImageIcon LOGO = new ImageIcon (LOGOImageIcon.getImage().getScaledInstance(-1, -1, java.awt.Image.SCALE_SMOOTH));
		
		iconlabel = new JLabel("");
		iconlabel.setIcon(LOGO);
		iconlabel.setBounds(0, 0, 786, 500);
		add(iconlabel);
	}
	/**
	 * 
	 * @return the ViewEvent button
	 */
	public JButton getBtnViewEvent(){
		return btnViewEvent;
	}
	/**
	 * 
	 * @return the UpdateDetails button
	 */
	public JButton getBtnUpdatePassword(){
		return btnUpdatePassword;
	}
	/**
	 * 
	 * @return the ViewSched button
	 */
	public JButton getBtnViewSched(){
		return btnViewSched;
	}

	/**
	 * @return the btnLogout
	 */
	public JButton getBtnLogout() {
		return btnLogout;
	}
	
	/**
	 * @return
	 */
	public JButton getBtnUpdateDetails() {
		return btnUpdateDetails;
	}

	/**
	 * @param btnUpdateDetails
	 */
	public void setBtnUpdateDetails(JButton btnUpdateDetails) {
		this.btnUpdateDetails = btnUpdateDetails;
	}

	/**
	 * @param btnViewEvent
	 */
	public void setBtnViewEvent(JButton btnViewEvent) {
		this.btnViewEvent = btnViewEvent;
	}

	/**
	 * @param btnUpdatePassword
	 */
	public void setBtnUpdatePassword(JButton btnUpdatePassword) {
		this.btnUpdatePassword = btnUpdatePassword;
	}

	/**
	 * @param btnViewSched
	 */
	public void setBtnViewSched(JButton btnViewSched) {
		this.btnViewSched = btnViewSched;
	}

	/**
	 * @param btnLogout
	 */
	public void setBtnLogout(JButton btnLogout) {
		this.btnLogout = btnLogout;
	}
}
